home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ WinNT LockWS.xpl < prev    next >
Text File  |  1999-09-13  |  1KB  |  51 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\Security"
  5. "NAME"="Lock Workstation"
  6. "VERSION"="1.03"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable "Lock Workstation" command in security screen"
  9. "DESCRIPTION 1"="Pressing CTRL+ALT+DEL will show the "Windows NT Security" screen, which normally includes the "Lock Workstation" command."
  10. "DESCRIPTION 2"="If this option is deactivated, the user can no longer activate this command (the button appears grayed-out)."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14. "COMMENT 2"=" "
  15.  
  16.  
  17. sPath="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
  18. sV1="DisableLockWorkstation" 'DW
  19. Sub Plugin_Initialize 
  20.  if GetWinVer=2 then
  21.     i=RegReadValue(sPath & sV1)
  22.     if IsEmpty(i) or i=0 then
  23.        SetUIElement 1,true 
  24.     end if
  25.  Else
  26.     Call Disable()
  27.  end if
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  b=GetUIElement(1)
  35.  if b=true then
  36.     i=RegReadValue(sPath & sV1)
  37.     if IsEmpty(i)=false then 
  38.        Call RegDeleteValue(sPath & sV1)
  39.     end if
  40.  else
  41.     Call RegWriteValue(sPAth & sV1,1,2)
  42.  end if
  43.  
  44. End Sub
  45.  
  46. Sub Plugin_Terminate 
  47. End Sub
  48.  
  49.  
  50.  
  51.